<?php
namespace app\demo\controller;

use app\BaseController;

class Demo extends BaseController
{
    public function show()
    {
        $result = [
            "status" => 1,
            "msg" => "OK",
            "res" => [
                'id' => 1
            ]
        ];

        $header = [
            "token" => "daiofhdpoadhopo"
        ];
        return json($result, 201, $header);
    }

    public function abc()
    {
        dump($this->request->type);
    }

}
